﻿using UnityEngine;
using System.Collections;

public class Door : MonoBehaviour {

	private Transform m_Transform;

	void Start () {
		m_Transform = gameObject.GetComponent<Transform> ();
	}
	

	public void OpenDoor()
	{
		m_Transform.Rotate (Vector3.up, 90);
	}

	public void CloseDoor()
	{
		m_Transform.Rotate (Vector3.up, -90);
	}
}
